rsa-aes-256-cbc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rsa-aes-256-cbc [2019/04/04 13:59] – jorpilo | rsa-aes-256-cbc [2019/04/04 14:05] (current) – jorpilo | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| < | < | ||
| jorpilo@Legion: | jorpilo@Legion: | ||
| - | Certificate: | ||
| - | Data: | ||
| - | Version: 3 (0x2) | ||
| - | Serial Number: | ||
| - | 0f: | ||
| - | Signature Algorithm: sha256WithRSAEncryption | ||
| - | Issuer: C = ES, ST = MADRID, L = MADRID, O = HACKERS, OU = RANSOMWARE, CN = EVIL HACKER, emailAddress = GoToHell@hackers.com | ||
| - | Validity | ||
| - | Not Before: Mar 29 10:24:10 2019 GMT | ||
| - | Not After : Apr 28 10:24:10 2019 GMT | ||
| - | Subject: C = ES, ST = MADRID, L = MADRID, O = HACKERS, OU = RANSOMWARE, CN = EVIL HACKER, emailAddress = GoToHell@hackers.com | ||
| - | Subject Public Key Info: | ||
| - | Public Key Algorithm: rsaEncryption | ||
| - | RSA Public-Key: (2048 bit) | ||
| - | Modulus: | ||
| - | 00: | ||
| - | f8: | ||
| - | 7d: | ||
| - | d1: | ||
| - | e9: | ||
| - | 44: | ||
| - | 93: | ||
| - | 9f: | ||
| - | b5: | ||
| - | 6d: | ||
| - | 11: | ||
| - | 1f: | ||
| - | 36: | ||
| - | a4: | ||
| - | ed: | ||
| - | bc: | ||
| - | c2: | ||
| - | 50:43 | ||
| - | Exponent: 65537 (0x10001) | ||
| - | X509v3 extensions: | ||
| - | X509v3 Subject Key Identifier: | ||
| - | 2F: | ||
| - | X509v3 Authority Key Identifier: | ||
| - | keyid: | ||
| - | |||
| - | X509v3 Basic Constraints: | ||
| - | CA:TRUE | ||
| - | Signature Algorithm: sha256WithRSAEncryption | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | jorpilo@Legion: | ||
| - | jorpilo@Legion: | ||
| - | jorpilo@Legion: | ||
| - | RSA operation error | ||
| - | 139862846772288: | ||
| - | 139862846772288: | ||
| - | jorpilo@Legion: | ||
| - | RSA operation error | ||
| - | 140704978797632: | ||
| - | 140704978797632: | ||
| - | jorpilo@Legion: | ||
| - | Can't open cert2.pem for reading, No such file or directory | ||
| - | 139918883845184: | ||
| - | 139918883845184: | ||
| - | unable to load certificate | ||
| - | jorpilo@Legion: | ||
| - | Certificate: | ||
| - | Data: | ||
| - | Version: 3 (0x2) | ||
| - | Serial Number: | ||
| - | 7d: | ||
| - | Signature Algorithm: sha256WithRSAEncryption | ||
| - | Issuer: C = ES, ST = MADRID, L = MADRID, O = HACKERS, OU = RANSOMWARE, CN = EVIL HACKER, emailAddress = GoToHell@hackers.com | ||
| - | Validity | ||
| - | Not Before: Mar 29 10:56:01 2019 GMT | ||
| - | Not After : Apr 28 10:56:01 2019 GMT | ||
| - | Subject: C = ES, ST = MADRID, L = MADRID, O = HACKERS, OU = RANSOMWARE, CN = EVIL HACKER, emailAddress = GoToHell@hackers.com | ||
| - | Subject Public Key Info: | ||
| - | Public Key Algorithm: rsaEncryption | ||
| - | RSA Public-Key: (2048 bit) | ||
| - | Modulus: | ||
| - | 00: | ||
| - | 20: | ||
| - | 80: | ||
| - | 7d: | ||
| - | 1a: | ||
| - | e5: | ||
| - | 02: | ||
| - | 49: | ||
| - | 62: | ||
| - | 07: | ||
| - | 2c: | ||
| - | 58: | ||
| - | 72: | ||
| - | 7d: | ||
| - | 66: | ||
| - | 1d: | ||
| - | 25: | ||
| - | dd:27 | ||
| - | Exponent: 65537 (0x10001) | ||
| - | X509v3 extensions: | ||
| - | X509v3 Subject Key Identifier: | ||
| - | 3A: | ||
| - | X509v3 Authority Key Identifier: | ||
| - | keyid: | ||
| - | |||
| - | X509v3 Basic Constraints: | ||
| - | CA:TRUE | ||
| - | Signature Algorithm: sha256WithRSAEncryption | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | jorpilo@Legion: | ||
| - | RSA operation error | ||
| - | 140021743969344: | ||
| - | jorpilo@Legion: | ||
| - | RSA operation error | ||
| - | 140323614708800: | ||
| - | 140323614708800: | ||
| - | jorpilo@Legion: | ||
| - | jorpilo@Legion: | ||
| - | jorpilo@Legion: | ||
| - | jorpilo@Legion: | ||
| - | jorpilo@Legion: | ||
| - | dec_1 decrypted | ||
| - | jorpilo@Legion: | ||
| - | Can't open encrypted.data for reading, No such file or directory | ||
| - | 140301409735744: | ||
| - | 140301409735744: | ||
| - | jorpilo@Legion: | ||
| - | b64 | ||
| - | jorpilo@Legion: | ||
| - | Can't open b641 for reading, No such file or directory | ||
| - | 139675331400768: | ||
| - | 139675331400768: | ||
| - | jorpilo@Legion: | ||
| - | b64 | ||
| - | jorpilo@Legion: | ||
| - | b64 | ||
| - | jorpilo@Legion: | ||
| - | *** WARNING : deprecated key derivation used. | ||
| - | Using -iter or -pbkdf2 would be better. | ||
| - | jorpilo@Legion: | ||
| - | Capacicard rocks! (capacicard.e-paths.com) | ||
| - | jorpilo@Legion: | ||
| - | RSA operation error | ||
| - | 139638472598592: | ||
| - | 139638472598592: | ||
| - | jorpilo@Legion: | ||
| - | jorpilo@Legion: | ||
| - | cat: key: No existe el fichero o el directorio | ||
| - | jorpilo@Legion: | ||
| - | key1 key1.pem | ||
| - | jorpilo@Legion: | ||
| - | jorpilo@Legion: | ||
| - | RSA operation error | ||
| - | 139959729116224: | ||
| - | 139959729116224: | ||
| - | jorpilo@Legion: | ||
| - | Can't open b64_2 for reading, No such file or directory | ||
| - | 140123039626304: | ||
| - | 140123039626304: | ||
| - | jorpilo@Legion: | ||
| - | RSA operation error | ||
| - | 139846928397376: | ||
| - | 139846928397376: | ||
| - | jorpilo@Legion: | ||
| - | Can't open key1.perm for reading, No such file or directory | ||
| - | 140651901154368: | ||
| - | 140651901154368: | ||
| - | unable to load certificate | ||
| - | jorpilo@Legion: | ||
| Certificate: | Certificate: | ||
| Data: | Data: | ||
| Line 265: | Line 73: | ||
| f.write(private_key.exportKey(" | f.write(private_key.exportKey(" | ||
| f.close() | f.close() | ||
| + | </ | ||
| + | < | ||
| + | -----BEGIN RSA PRIVATE KEY----- | ||
| + | MIIEpAIBAAKCAQEA6uRVidTLPOkNy/ | ||
| + | 1D0zmDo9U3TRYpN3kAmmTIkPIBe5v0LpVKbljqgh2at1rlw9vXZEikz+gcKrfdtR | ||
| + | xWO7VW2TZyTgauw3jaayCB+3htefaQ+EAAca/ | ||
| + | Ladt0qew38RaBmX8gh1zZ58RxLVear75l1N6nJzJ6LYf7q8dI+ssOOZAsVFzYB02 | ||
| + | U5FLxJ24Meri9l6cdXmknW2MmADr3kYzyCktkRntaqG5fwGktQIu0I1fbsa8HPQ2 | ||
| + | WxgJrQcIIss35NLCKPmAw/ | ||
| + | 2BrrK7kH38BQBJSQ63VikdFWzBObZ1E4eHi2qquu4610EYX48lcHV51qkDKn7QxH | ||
| + | dvr6cx1G5FmHBOx9xHMZLKeDc0JKCsWjM8nTof44SFmAqUu2VT6Hoon1kYucncG1 | ||
| + | lPkXIsoE2XeUTv8yYFyT+6hCRuxAIr1cfZj8HLHenj0n59hmMHCUFm97YcDncAHW | ||
| + | aXEdP9Un/ | ||
| + | T/ | ||
| + | gtkh/ | ||
| + | I/ | ||
| + | 20o1YmT075n0VnwExgFD6juwPemuQMFj2yFYk7GejwiAihmOHkG+BfYtAoGBAPCp | ||
| + | yEA2px+wMbU7dGOgf94J1obbzpsWCaSPjHVD0JUyMwsSegXlgtHPL9IfmBqzg0P1 | ||
| + | 1gc4IXncpkgkSTmNyObFZpAvZ4kToyRm23KfQ454wHX2AbqqMBcOWcfOC3cNTX08 | ||
| + | vtO3+x953Qsmwipu8VVoMjL7BbL9PHnpAfOQflYvAoGBAN70vEfzKd4lDkKqSLzc | ||
| + | Nc/ | ||
| + | hOYYQkhbzKXMbQJj2k3FaWq8+k8v6xjBQRzG5jYQGn3WehXQbJ9Uav84FQcgZsgq | ||
| + | wq7Oy3wDcL61dIW5O2aOmeNBAoGAFBrq+spWDeSnUm+kGoqXBBKoVF3alcQyjAfe | ||
| + | ARHoQ/ | ||
| + | hk/ | ||
| + | 6SQiGcsCgYAIPsn9SA4Tup3tDb/ | ||
| + | NgtdQlkulM1Lry/ | ||
| + | eUZORMennZVbzH3UsEjuTNKdSUl9tIuWSVHrPaknEUsSkF/ | ||
| + | -----END RSA PRIVATE KEY----- | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Decode using RSA ==== | ||
| + | |||
| + | < | ||
| + | cat key2 | base64 -d > b64_key2 | ||
| + | |||
| + | openssl rsautl -decrypt -in b64_key2 -out decrypted -inkey key2.pem | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Decode AES-256-CBC ==== | ||
| + | < | ||
| + | openssl enc -d -aes-256-cbc -in b64_f1 -out un_encrypted.data -pass file: | ||
| </ | </ | ||
rsa-aes-256-cbc.1554386383.txt.gz · Last modified: by jorpilo
