예제 #1
0
        public static bool RecoverPublicKey(string privateKeyPath)
        {
            IEnumerable <string> errorMessages = GetRecoverPublicKeyError(privateKeyPath);

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

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

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

            return(DisplayMessage.AnyErrors(errorMessages));
        }