Find Jobs
Hire Freelancers

Security assignment

$30-250 USD

ถูกยกเลิก
โพสต์ มากกว่า 9 ปีที่ผ่านมา

$30-250 USD

ชำระเงินเมื่อส่งงาน
Use the openssl library ([login to view URL]) to write the following two functions for encryption and decryption in a file fscrypt.cc. You should use block cipher method blowfish for encryption. Blowfish uses 64-bit blocks and typically 128-bit keys. // put the following lines in fscrypt.h #include "openssl/blowfish.h" // encrypt plaintext of length bufsize. Use keystr as the key. const int BLOCKSIZE = 8; // Block size for blowfish void *fs_encrypt(void *plaintext, int bufsize, char *keystr, int *resultlen); // decrypt ciphertext of length bufsize. Use keystr as the key. void *fs_decrypt(void *ciphertext, int bufsize, char *keystr, int *resultlen); Both functions allocate the result buffer of at least the required size (using new()) and return a pointer to it. Both functions also return the number of valid bytes in the result buffer in resultlen. The application code is responsible for deleting the buffer. Use CBC mode of encryption. For padding, pad with length of the pad in all the padded characters. Assume that the initialization vector contains NULL characters (all 0's). Description of blowfish functions can be found at [login to view URL] Use the following functions to faciliate your work: BF_set_key: use all characters of the keystr, excluding NULL terminator. Valid keystr is assumed to be a string. BF_cbc_encrypt and BF_ecb_encrypt ================================================ #include <assert.h> #include <stdio.h> #include <string.h> #include "fscrypt.h" int main() { char s[] = "hello world"; char *outbuf, *recvbuf; char pass[] = "top secret"; int len = 0; int recvlen = 0; outbuf = (char *) fs_encrypt((void *) s, strlen(s)+1, pass, &len); printf("%s %d\n", "length after encryption = ", len); int i = 0; printf("ciphertext = "); for (i = 0; i < len; i++) printf("%02x", outbuf[i]); printf("\n"); recvbuf = (char *) fs_decrypt((void *) outbuf, len, pass, &recvlen); assert(memcmp(s, recvbuf, recvlen) == 0); assert(recvlen == (strlen(s) + 1)); printf("plaintext = %s\n", recvbuf); } ================================================
รหัสโปรเจกต์: 6627626

เกี่ยวกับโปรเจกต์

5 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 10 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
5 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $93 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
Hello I'm interesting your project very well I'm a Good C/C++, Crypto, Math, Algorithm expert. I understand your req exactly. I m quite well experienced in these assignment jobs. Let's go ahead with me I want to service for you continously. Thanks
$70 USD ใน 1 วัน
4.9 (932 รีวิว)
9.1
9.1
รูปอวาตาร์ของผู้ใช้
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the lauguage is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$49 USD ใน 2 วัน
4.9 (226 รีวิว)
7.4
7.4
รูปอวาตาร์ของผู้ใช้
Hello I am a c/c++ programmer. I can do this job perfectly. If you have interest for me, please keep message in here. Sincerely
$126 USD ใน 2 วัน
4.9 (8 รีวิว)
4.3
4.3
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
$155 USD ใน 3 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
$66 USD ใน 3 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ UNITED STATES
dallas, United States
5.0
2
เป็นสมาชิกตั้งแต่ ต.ค. 12, 2014

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง