The key length depends on the key specifications. You are advised to store the key in the text type in the database.