Esempio n. 1
0
 protected override void ProcessRecord()
 {
     var key = new SodiumSymmetricKey()
     {
         KeyType = "OneTime",
         Key = OneTimeAuth.GenerateKey().ToBase64String(),
     };
     WriteObject(key);
 }
 protected override void ProcessRecord()
 {
     var key = new SodiumSymmetricKey()
     {
         KeyType = "Symmetric",
         Key = SecretBox.GenerateKey().ToBase64String()
     };
     WriteObject(key);
 }