Hi, help plz with my problem.
There is a code:
while (1) {
inlen = _read(in, ctext, key_size);
printf("Read %i bytes\n", inlen);
if (inlen <= 0) break;
outlen...
Type: Posts; User: surgeon
Hi, help plz with my problem.
There is a code:
while (1) {
inlen = _read(in, ctext, key_size);
printf("Read %i bytes\n", inlen);
if (inlen <= 0) break;
outlen...
any thoughts?
Hi, I'm generating rsa keys using openssl library.
rsa = RSA_generate_key(bits, RSA_F4, NULL, NULL);
While generating (and loading key from file), app wants me to enter PEM pass phrase.
Can...
I'm trying to work with clamav sample code. Application compiled,prints number of signatures, and then crashed.
Using debugger, I found code with error:
if ((ret = cl_scandesc(fd, &virname,...
I have a program, that show messagebox.
Another app opens it, read and writes to string in text file
byte[] plain = File.ReadAllBytes(file);
byte[] encode = encodeBytes(plain, pass); ...
Hi.
I'm looking for a code to send email with ssl. All sources i've found were broken.
Plz, help with code. Thanks
any ideas?
I use _CRT_SECURE_NO_WARNINGS.
I think problem is not in scanf function, because i tried CreateFile(argc[1]) and there was the same problem
char szPath[256];
The file i've try to open is ollydbg.exe
I have two files in one folder, so i enter only filename, without full path.
Hi, CreateFile always return INVALID_HANDLE_VALUE. I run program into MyDocuments directory, and on C drive. What am i doing wrong?
printf("Enter path:\n");
scanf("%s", &szPath);
...
I'm trying to send GET request to generate receiving address (Blockchain api, https://blockchain.info/ru/api/api_receive) On the page i've generated request - "
...
Hi. I'm trying to search all drives for files and have such code:
int main()
{
TCHAR szCurrDrive[] = L"C:\\";
TCHAR szPath[MAX_PATH+1];
DWORD i, dwDisksMask = GetLogicalDrives();
...
Thanks, It worked!
I write a program:
#include <Windows.h>
#include <iostream>
typedef int(__stdcall *message)(HWND, LPCTSTR, LPCTSTR, UINT);
int main(int argc, wchar_t* argv[])
i change opening mode to r+
cat "hello world" > test
./crypt test abc
program changed test file
then, i try to decrypt file with command
./crypt test abc
but file test doesn't changed
#include <stdio.h>
int main(int argc, char* argv[])
{
FILE *fp;
int z,i=0;
int rbyte;
printf("One-time pad cryptor.\n");
Yes, Aslaville, you are right.
Now, next problem.
if (i==z) i=0;
rbyte=rbyte^argv[2][i];
printf("rbyte is %d\n",rbyte);
fputc(rbyte,fp);
i++;
You are right. I change
while ((rbyte = fgetc(fp)) != EOF)
and made
i==z
but still got segmentation fault.
Look:
while ((rbyte=fgetc(fp))!=EOF)
Hi guys, plz help. I write simple cryptor:
#include <stdio.h>
int main(int argc, char* argv[])
{
FILE *fp;
int z,i=0;
int rbyte;
Thanks a lot, man! It really helps me!
Greetings. I wrote next program:
#include <stdio.h>
int main(int argc, char *argv[])
{
FILE *fp, *fp2;
int c;
Use GetModuleFileName(), it gives you path to a program.
You are right. I forgot to remove this semicolon. Thanks.
the_jackass, thanks a lot! I did it! my final (and worked) version is:
#include <stdio.h>
#include <stdlib.h>
main()
{
FILE *fin,*fout;
char buff;