![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 13
Rep Power: 0
![]() |
<?php
$key="key"; function en($text) { // $ivk = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($ivk, MCRYPT_RAND); $kryp = mcrypt_encrypt(MCRYPT_BLOWFISH, $key, $text, "ecb", $iv); echo $kryp; } // echo en("asdasd"); // ?> This returns empty! WTF is wrong ?! Works if Ill remove lines where // at the end :eek: |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Please read the forum's rules/FAQ and a "How to Post...." thread. These are HTML pages: they eat whitespace. The use of code tags will preserve your formatting and make your code easier to read for those desiring to offer help. Aside from that, you don't indicate what your criterion for works/not works is.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|