コード例 #1
0
        /// <summary>
        /// Generate new keys and store them
        /// </summary>
        public void GenerateKeys()
        {
            var IV     = EncryptionManager.GenerateAesIV();
            var key    = EncryptionManager.GenerateAesKey();
            var secret = EncryptionManager.GenerateHashSecret();

            EncodedIV     = Convert.ToBase64String(IV);
            EncodedKey    = Convert.ToBase64String(key);
            EncodedSecret = Convert.ToBase64String(secret);
        }