encryption

gnupg decrypt command with php with passphrase

耗尽温柔 提交于 2021-02-08 08:23:48
问题 Im using Gnupg to decrypt a file: gpg --decrypt -o file.xml file.gpg You need a passphrase to unlock the secret key for user: "TEST-COMPANY (DAM Key) <test@test.de>" 4096-bit RSA key, ID 257C2D21, created 2018-04-23 Enter passphrase: Then I write this passphrase and then works. And now I want to make it automatic using this command on PHP: $command = 'gpg --decrypt -o file.xml file.gpg' exec($command); The problem came when system ask for phassphrase. I tried this: $command = 'gpg --decrypt

Solving a substitution cipher with python

半世苍凉 提交于 2021-02-08 07:50:39
问题 I know similar questions have been asked, but this is kind of a trivial case. Given a text file endcoded with a substitution cipher, I need to decode it using python. I am not given any examples of correctly deciphered words. The relationship is 1-to-1 and case doesn't make a difference. Also, punctuation isn't changed and spaces are left where they are. I don't need help with the code as much as I need help with a general idea of how this could be done in code. My main approaches involve:

Solving a substitution cipher with python

我只是一个虾纸丫 提交于 2021-02-08 07:50:20
问题 I know similar questions have been asked, but this is kind of a trivial case. Given a text file endcoded with a substitution cipher, I need to decode it using python. I am not given any examples of correctly deciphered words. The relationship is 1-to-1 and case doesn't make a difference. Also, punctuation isn't changed and spaces are left where they are. I don't need help with the code as much as I need help with a general idea of how this could be done in code. My main approaches involve:

Solving a substitution cipher with python

时光毁灭记忆、已成空白 提交于 2021-02-08 07:49:04
问题 I know similar questions have been asked, but this is kind of a trivial case. Given a text file endcoded with a substitution cipher, I need to decode it using python. I am not given any examples of correctly deciphered words. The relationship is 1-to-1 and case doesn't make a difference. Also, punctuation isn't changed and spaces are left where they are. I don't need help with the code as much as I need help with a general idea of how this could be done in code. My main approaches involve:

Can I use API or something else to get close to a TRUE RANDOM NUMBER in VBA?

自闭症网瘾萝莉.ら 提交于 2021-02-08 07:26:12
问题 Is there an API, library, or some other chip-set based command I can access in VBA? I currently have a setup for getting random numbers; however, when I put the result sets to the test, the numbers do not even come close to generating a good statistical curve. I tested this by generating 600 simulated rolls of 2 six-sided dice totaling the 2 dice together each time. I was hoping for the number 7 to take a huge lead; however it came in second twice with nowhere near the appropriate statistical

RtlGenRandom/CryptGenRandom or other WinAPI to generate cryptographically secure random numbers (first quarter of 2018) [closed]

痞子三分冷 提交于 2021-02-08 07:26:05
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Improve this question I swear, this seems to be changing every time I check the MSDN documentation. When I coded my executable Microsoft was suggesting to use RtlGenRandom API to generate cryptographically strong random numbers. Now when I'm checking documentation for RtlGenRandom

RtlGenRandom/CryptGenRandom or other WinAPI to generate cryptographically secure random numbers (first quarter of 2018) [closed]

自古美人都是妖i 提交于 2021-02-08 07:25:01
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Improve this question I swear, this seems to be changing every time I check the MSDN documentation. When I coded my executable Microsoft was suggesting to use RtlGenRandom API to generate cryptographically strong random numbers. Now when I'm checking documentation for RtlGenRandom

Can I use API or something else to get close to a TRUE RANDOM NUMBER in VBA?

一笑奈何 提交于 2021-02-08 07:23:52
问题 Is there an API, library, or some other chip-set based command I can access in VBA? I currently have a setup for getting random numbers; however, when I put the result sets to the test, the numbers do not even come close to generating a good statistical curve. I tested this by generating 600 simulated rolls of 2 six-sided dice totaling the 2 dice together each time. I was hoping for the number 7 to take a huge lead; however it came in second twice with nowhere near the appropriate statistical

Can I use API or something else to get close to a TRUE RANDOM NUMBER in VBA?

我只是一个虾纸丫 提交于 2021-02-08 07:22:09
问题 Is there an API, library, or some other chip-set based command I can access in VBA? I currently have a setup for getting random numbers; however, when I put the result sets to the test, the numbers do not even come close to generating a good statistical curve. I tested this by generating 600 simulated rolls of 2 six-sided dice totaling the 2 dice together each time. I was hoping for the number 7 to take a huge lead; however it came in second twice with nowhere near the appropriate statistical

Using assembly code written for 32-bit in 64-bit application

血红的双手。 提交于 2021-02-08 04:17:07
问题 Can I use the assembly routines for Serpent encryption in the link below written for 32-bit x86 from a 64-bit program on an x86-64 machine? That is, without launching a separate 32-bit process for it? If not, does anyone have a pointer to an optimized implementation of Serpent that works in both 32 and 64 bit (LGPL is OK but cannot use GPL since it's a commercial project)? http://gladman.plushost.co.uk/oldsite/cryptography_technology/serpent/serpent.asm 回答1: You will need to convert the