This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\bj>echo %PATH% | |
C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 | |
'ABCD123' is not recognized as an internal or external command, | |
operable program or batch file. | |
C:\Users\bj>flutter -v | |
'ABCD123' is not recognized as an internal or external command, | |
operable program or batch file. | |
'where' is not recognized as an internal or external command, | |
operable program or batch file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sign(private_key_loc, policyText): | |
''' | |
param: private_key_loc Path to your private key | |
param: package PolicyText to be signed | |
return: base64 encoded signature | |
''' | |
from Crypto.PublicKey import RSA | |
from Crypto.Signature import PKCS1_v1_5 | |
from Crypto.Hash import SHA256 | |
from OpenSSL import crypto |