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));
        }
Exemplo n.º 5
0
        public static bool Verify(string publicKeyPath, string[] filePaths)
        {
            IEnumerable <string> errorMessages = GetVerifyErrors(publicKeyPath, filePaths);

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

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

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

            return(DisplayMessage.AnyErrors(errorMessages));
        }