Exemplo n.º 1
0
        public static bool RecoverPublicKey(string privateKeyPath)
        {
            IEnumerable <string> errorMessages = GetRecoverPublicKeyError(privateKeyPath);

            return(DisplayMessage.AnyErrors(errorMessages));
        }
Exemplo n.º 2
0
        public static bool FileEncryptionWithPublicKey(string privateKeyPath, char[] encodedPublicKey, string[] filePaths)
        {
            IEnumerable <string> errorMessages = GetFileEncryptionErrors(privateKeyPath, encodedPublicKey, filePaths);

            return(DisplayMessage.AnyErrors(errorMessages));
        }
Exemplo n.º 3
0
        public static bool GenerateKeyPair(string directoryPath, int keyPairType)
        {
            IEnumerable <string> errorMessages = GetGenerateKeyPairError(directoryPath, keyPairType);

            return(DisplayMessage.AnyErrors(errorMessages));
        }
Exemplo n.º 4
0
        public static bool FileEncryptionWithPassword(char[] password, string keyfilePath, string[] filePaths)
        {
            IEnumerable <string> errorMessages = GetFileEncryptionErrors(password, keyfilePath, filePaths);

            return(DisplayMessage.AnyErrors(errorMessages));
        }