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

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

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

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

            return(DisplayMessage.AnyErrors(errorMessages));
        }
Example #5
0
        public static bool Verify(string publicKeyPath, string[] filePaths)
        {
            IEnumerable <string> errorMessages = GetVerifyErrors(publicKeyPath, filePaths);

            return(DisplayMessage.AnyErrors(errorMessages));
        }
Example #6
0
        public static bool Verify(char[] encodedPublicKey, string[] filePaths)
        {
            IEnumerable <string> errorMessages = GetVerifyErrors(encodedPublicKey, filePaths);

            return(DisplayMessage.AnyErrors(errorMessages));
        }
Example #7
0
        public static bool Sign(string privateKeyPath, string comment, string[] filePaths)
        {
            IEnumerable <string> errorMessages = GetSignErrors(privateKeyPath, comment, filePaths);

            return(DisplayMessage.AnyErrors(errorMessages));
        }
Example #8
0
        public static bool SignatureFile(string signatureFilePath, string[] filePaths)
        {
            IEnumerable <string> errorMessages = GetSignatureFileError(signatureFilePath, filePaths);

            return(DisplayMessage.AnyErrors(errorMessages));
        }