Limit length of keys to 50 bits Add basic input validation
Added generate, crypt and decrypt function to ui