¿base 64 php se puede cifra enlaces de descarga?
si ya se que estais artos del popup spoiler
(http://2.bp.blogspot.com/-qwc_lhL6S1Y/ULAg4Ap6YjI/AAAAAAAAFtg/RwJNI40mpwE/s640/Sin+t%C3%ADtulo.png)
existe alguna otra forma de proteger aparte popup spoiler :huh:
solo encontre esta informacion
<?php
$str = 'Me van a Emcriptar D:';
echo base64_encode($str);
?>
http://php.net/manual/es/function.base64-encode.php
http://writecodeonline.com/php/
Click'n'Load 2
<FORM ACTION="http://127.0.0.1:9666/flash/add" target="hidden" METHOD="POST"> <INPUT TYPE="hidden" NAME="passwords" VALUE="myPassword"> <INPUT TYPE="hidden" NAME="source" VALUE="http://jdownloader.org/spielwiese"> <INPUT TYPE="hidden" NAME="urls" VALUE="{AQUI PONER EL LINK DE DESCARGA}"> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Clic aqui para Agregar Links a Jdownloader"> </FORM>
www.jdownloader.org/knowledge/
tambien tengo un problema
No puedo sacar de Mantenimiento el script en el localhost con XAMPP :S pero quisas :$ alguien quiera verla y rescatar sus mods :)
(http://www.subeimagenes.com/img/1-611124.JPG)
Settings.php
<?php
$verify_menciones=0;//Aqui lo cambie a 0 estaba en 1 y no puedo sacarlo de mateniemiento plop XD
$maintenance = 0; // Aqui tambien me dijeron que cambiara a = ''; pero no resulto
$mtitle = 'Actualización del Sitio';
$mmessage = 'Identi estará nuevamente operativo dentro de unas horas.';
$mbname = 'Identi';
$language = 'spanish';
$limit_posts = '20';
$boardurl = 'http://localhost';
$url = 'http://localhost/';
$chatid = '43220954'; // ID de tu chat de xat.com
$widget = 'Novedades en Identi'; // Lo que saldrá en el título del widget
$slogan = 'Tus descargas en mediafire'; // lo que saldrá en el título de tu web, no pongas el nombre
$no_avatar = '/images/def/avatar.png';
$webmaster_email = 'seruji0@hotmail.com';
$cookiename = 'SMFCookie11';
$db_server = 'localhost';
$db_name = '';
$db_user = 'root';
$db_passwd = '';
$db_prefix = 'smf_';
$db_persist = 0;
$db_error_send = 1;
$boarddir = 'C:\\xampp\htdocs';
$sourcedir = 'C:\\xampp\htdocs/Sources';
$db_last_error = 1335835390;
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
$sourcedir = $boarddir . '/Sources';
$db_character_set = 'UTF-8';
$test=true;
?>
index.php
<?php
if(!isset($_COOKIE['desa12'])){
if(isset($_POST['pass']) && $_POST['pass']=='bender'){
setcookie('desa12',1,time()+86400);
header('Location: /');}
echo'<form method="post">Pass: <input type="text" name="pass">
<input type="submit" value="Entrar"></form>';
exit;
}
$forum_version = 'Identi v.2';
define('SMF', 1);
@set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start = microtime();
// Make sure some things simply do not exist.
foreach (array('db_character_set') as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable]);
// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');
if (@version_compare(PHP_VERSION, '4.2.3') != 1)
require_once($sourcedir . '/Subs-Compat.php');
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();
if (empty($db_persist))
$db_connection = @mysql_connect($db_server, $db_user, $db_passwd);
else
$db_connection = @mysql_pconnect($db_server, $db_user, $db_passwd);
if (!$db_connection || !@mysql_select_db($db_name, $db_connection))
db_fatal_error();
reloadSettings();
// Unserialize the array of pretty board URLs
$context = array('pretty' => array(
'action_array' => unserialize($modSettings['pretty_action_array']),
'board_urls' => unserialize($modSettings['pretty_board_urls']),
'db_count' => 0,
));
// Clean the request variables, add slashes, etc.
cleanRequest();
// Seed the random generator?
if (empty($modSettings['rand_seed']) || mt_rand(1, 250) == 69)
smf_seed_generator();
// Determine if this is using WAP, WAP2, or imode. Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}
if (!defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' : '')));
$modSettings['enableCompressedOutput'] = '0';
$modSettings['defaultMaxMessages'] = 5;
$modSettings['defaultMaxTopics'] = 9;
if (WIRELESS_PROTOCOL == 'wap')
header('Content-Type: text/vnd.wap.wml');
}
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0)
{
if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION, '4.2.0') == -1)
$modSettings['enableCompressedOutput'] = '0';
else
ob_start('ob_gzhandler');
}
if (empty($modSettings['enableCompressedOutput']))
ob_start();
set_error_handler('error_handler');
loadSession();
call_user_func(smf_main());
obExit(null, null, true);
function smf_main()
{
global $modSettings, $settings, $user_info, $board, $topic, $maintenance, $sourcedir;
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
die;
loadUserSettings();
loadBoard();
loadTheme();
is_not_banned();
loadPermissions();
// Referrals Mod - Check For Referrals
if (isset($_GET['referredby']) || isset($_COOKIE['smf_referrals']))
loadReferral();
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'jsoption', '.xml')))
{
writeLog();
if (!empty($modSettings['hitStats']))
trackStats(array('hits' => '+'));
}
// twitter mod -->
if (include_once($sourcedir . '/twitter.php'))
twitter_cron();
// <-- twitter mod
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
{
require_once($sourcedir . '/LogInOut.php');
return $_REQUEST['action'] == 'login2' ? 'Login2' : 'Logout';
}
else
{
require_once($sourcedir . '/Subs-Auth.php');
return 'InMaintenance';
}
}
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', 'verificationcode'))))
{
require_once($sourcedir . '/Subs-Auth.php');
return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/Recent.php');
return 'RecentPosts';
}
elseif (empty($topic))
{
require_once($sourcedir . '/MessageIndex.php');
return 'MessageIndex';
}
else
{
require_once($sourcedir . '/Display.php');
return 'Display';
}
}
$actionArray = array(
'url' => array('url.php', 'url_main'),
'activate' => array('Register.php', 'Activate'),
'admin' => array('Admin.php', 'Admin'),
'ban' => array('ManageBans.php', 'Ban'),
'boardrecount' => array('Admin.php', 'AdminBoardRecount'),
'favoritos' => array('Favoritos.php', 'Favoritos'),
'cleanperms' => array('Admin.php', 'CleanupPermissions'),
'convertentities' => array('Admin.php', 'ConvertEntities'),
'convertutf8' => array('Admin.php', 'ConvertUtf8'),
'coppa' => array('Register.php', 'CoppaForm'),
'contactenos' => array('Contactenos.php', 'ShowHelp'),
'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
'detailedversion' => array('Admin.php', 'VersionDetail'),
'display' => array('Display.php', 'Display'),
'dumpdb' => array('DumpDatabase.php', 'DumpDatabase2'),
'featuresettings' => array('ModSettings.php', 'ModifyFeatureSettings'),
'featuresettings2' => array('ModSettings.php', 'ModifyFeatureSettings2'),
'findmember' => array('Subs-Auth.php', 'JSMembers'),
'terminos-y-condiciones' => array('terminos-y-condiciones.php', 'ShowHelp'),
'protocolo' => array('Protocolo.php', 'ShowHelp'),
'comunidades' => array('comunidades2.php', 'comunidades_main'),
'im' => array('PersonalMessage.php', 'MessageMain'),
'lock' => array('LockTopic.php', 'LockTopic'),
'login' => array('LogInOut.php', 'Login'),
'login2' => array('LogInOut.php', 'Login2'),
'logout' => array('LogInOut.php', 'Logout'),
'maintain' => array('Admin.php', 'Maintenance'),
'manageattachments' => array('ManageAttachments.php', 'ManageAttachments'),
'manageboards' => array('ManageBoards.php', 'ManageBoards'),
'managecalendar' => array('ManageCalendar.php', 'ManageCalendar'),
'managesearch' => array('ManageSearch.php', 'ManageSearch'),
'markasread' => array('Subs-Boards.php', 'MarkRead'),
'membergroups' => array('ManageMembergroups.php', 'ModifyMembergroups'),
'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
'mlist' => array('Memberlist.php', 'Memberlist'),
'modifycat' => array('ManageBoards.php', 'ModifyCat'),
'modifykarma' => array('Karma.php', 'ModifyKarma'),
'hist-mod' => array('Modlog.php', 'ViewModlog'),
'movetopic' => array('MoveTopic.php', 'MoveTopic'),
'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
'movetopic3' => array('MoveTopic.php', 'MoveTopic3'),
'optimizetables' => array('Admin.php', 'OptimizeTables'),
'packageget' => array('PackageGet.php', 'PackageGet'),
'packages' => array('Packages.php', 'Packages'),
'permissions' => array('ManagePermissions.php', 'ModifyPermissions'),
'pgdownload' => array('PackageGet.php', 'PackageGet'),
'pm' => array('PersonalMessage.php', 'MessageMain'),
'post' => array('Post.php', 'Post'),
'agregar' => array('Agregar.php', 'Agregar'),
'agregar2' => array('Agregar.php', 'Agregar2'),
'post2' => array('Post.php', 'Post2'),
'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
/* 'profile' => array('Profile.php', 'ModifyProfile'),
'profile2' => array('Profile.php', 'ModifyProfile2'), */
'quotefast' => array('Post.php', 'QuoteFast'),
'quickmod' => array('Subs-Boards.php', 'QuickModeration'),
'quickmod2' => array('Subs-Boards.php', 'QuickModeration2'),
'index' => array('Recent.php', 'RecentPosts'),
'regcenter' => array('ManageRegistration.php', 'RegCenter'),
'registrarse' => array('Register.php', 'Register'),
'register2' => array('Register.php', 'Register2'),
'reminder' => array('Reminder.php', 'RemindMe'),
'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
'removeoldtopics2' => array('RemoveTopic.php', 'RemoveOldTopics2'),
'repairboards' => array('RepairBoards.php', 'RepairBoards'),
'requestmembers' => array('Subs-Auth.php', 'RequestMembers'),
'search' => array('Search.php', 'PlushSearch1'),
'search2' => array('Search.php', 'PlushSearch2'),
'serversettings' => array('ManageServer.php', 'ModifySettings'),
'serversettings2' => array('ManageServer.php', 'ModifySettings2'),
'saveme' => array('Protocolo.php', 'ShowHelps'),
'smileys' => array('ManageSmileys.php', 'ManageSmileys'),
'splittopics' => array('SplitTopics.php', 'SplitTopics'),
'TOPs' => array('Stats.php', 'DisplayStats'),
'sticky' => array('LockTopic.php', 'Sticky'),
'rz' => array('Acciones.php', 'Acciones'),
'theme' => array('Themes.php', 'ThemesMain'),
'trackip' => array('Profile.php', 'trackIP'),
'viewErrorLog' => array('ManageErrors.php', 'ViewErrorLog'),
'viewmembers' => array('ManageMembers.php', 'ViewMembers'),
'viewprofile' => array('Profile.php', 'ModifyProfile'),
'twittersettings' => array('TwitterSettings.php', 'ModifyTwitterSettings'),
'Vigilapuntos' => array('Vigilapuntos.php', 'Vigilapuntos'),
'catalogo-programas' => array('cat-software.php', 'inicio'),
'editados' => array('editados.php', 'editados'),
'catalogform_pelic' => array('catalogform_pelic.php', 'catalogform_pelic'),
'catalogo_pelic' => array('catalogo_pelic.php', 'catalogo_pelic'),
'catalogform_music' => array('catalogform_music.php', 'catalogform_music'),
'catalogo_musica' => array('catalogo_musica.php', 'catalogo_musica'),
'catalogform_juegos' => array('catalogform_juegos.php', 'catalogform_juegos'),
'catalogo_juegos' => array('catalogo_juegos.php', 'catalogo_juegos'),
'form_series' => array('form_series.php', 'form_series'),
'catalogo_series' => array('catalogo_series.php', 'catalogo_series'),
'publiform' => array('publiform.php', 'publiform_main'),
'anunciantes' => array('anunciantes.php', 'anunciantes_main'),
'borradores' => array('drafts.php', 'drafts'),
'buscador' => array('buscador.php', 'buscador'),
'streaming' => array('streaming.php', 'streaming'),
/* 'tags' => array('Tags.php', 'TagsMain'), */
//'extras' => array('Extras.php', 'Extras'),
/* 'buddies' => array('Buddies.php', 'BuddiesMain'), */
//'staff' => array('SeccionStaff.php', 'StaffMain'),
/* 'jsoption' => array('Themes.php', 'SetJavaScript'),
'jspedidos' => array('pedidos.php','Setpedidos'),
'jsmodify' => array('Post.php', 'JavaScriptModify'), */
//'widget' => array('widget.php', 'ShowHelp'),
/* 'denunciar' => array('Denunciar.php', 'ShowHelp'), */
/* 'enlazanos' => array('Enlazanos.php', 'ShowHelp'), */
/* 'gsearch' => array('gsearch.php', 'ShowHelp'), */
/* 'jsoption' => array('Themes.php', 'SetJavaScript'),
'jsmodify' => array('Post.php', 'JavaScriptModify'), */
/* 'news' => array('ManageNews.php', 'ManageNews'), */
//'monitor' => array('Monitor.php', 'Monitor'),
/* 'printpage' => array('Printpage.php', 'PrintTopic'), */
/* 'sitemap' => array('Sitemap.php', 'ShowSiteMap'), */
//'verificationcode' => array('Register.php', 'VerificationCode'),
//'who' => array('Who.php', 'Who'),
//'.xml' => array('News.php', 'ShowXmlFeed'),
//'enviar-puntos' => array('shop/Shop.php', 'Shop'),
//'shop_general' => array('shop/ShopAdmin.php', 'ShopGeneral'),
//'shop_inventory' => array('shop/ShopAdmin.php', 'ShopInventory'),
//'shop_items_add' => array('shop/ShopAdmin.php', 'ShopItemsAdd'),
//'shop_items_edit' => array('shop/ShopAdmin.php', 'ShopItemsEdit'),
//'shop_restock' => array('shop/ShopAdmin.php', 'ShopRestock'),
//'shop_usergroup' => array('shop/ShopAdmin.php', 'ShopUserGroup'),
//'shop_cat' => array('shop/ShopAdmin.php', 'ShopCategories'),
//'denuncias' => array('Denuncias.php', 'DenunciasMain'),
//'spam' => array('spam.php', 'spam'),
//'games' => array('games.php', 'GamesMain'),
//'rank' => array('Ranking.php', 'RankMain'),
//'pedidos' => array('pedidos.php','pedidos_main'),
//'imagenes' => array('Gallery.php', 'GalleryMain'),
//'dlattach' => array('Display.php', 'Download'),
//'recomendar' => array('Recomendar.php', 'ShowHelp'),
//'enviar-a-amigo' => array('SendTopic.php', 'SendTopic'),
//'cine' => array('Cine.php', 'cine'),
//'trofeos' => array('Trofeos.php', 'TMain'),
//'actrank' => array('Actrank.php', 'RankMain'),
//'help' => array('Help.php', 'ShowHelp'),
//'helpadmin' => array('Help.php', 'ShowAdminHelp'),
//'notify' => array('Notify.php', 'Notify'),
//'notifyboard' => array('Notify.php', 'BoardNotify'),
);
$i = 1;
while (isset($modSettings['CA' . $i . '_name']))
{
$actionArray[$modSettings['CA' . $i . '_name']] = array('CustomAction.php', 'CustomAction');
$i++;
}
// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
if (!empty($settings['catch_action']))
{
require_once($sourcedir . '/Themes.php');
return 'WrapAction';
}
require_once($sourcedir . '/Recent.php');
return 'RecentPosts';
}
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}
?>
deberia funcionar asi
demo: http://identi.foro-web.net
/
User: demo
pass: demomarco
[youtube=640,360]http://www.youtube.com/watch?v=wNhV9lhSkqQ[/youtube]
http://www.dailymotion.com/video/xxvcmy_script_webcam
(http://host-images.com/u/files/vu4r5ktl02k0iymsdpi4.png)
panel de moderacion :P
(http://host-images.com/u/files/i7xr9qmrua91l1k91ugq.png)
descarga :
http://www.mediafire.com/?v309gxlz79cdlxw
contraseña : bender
el spoiler de identi pero como adpatarlo con base 64 :huh:
<script>function ventanaSecundaria(){t=11;timer=window.setInterval("contador()",1000);hija=window.open("http://www.tupagina.com/popup.php","ventana1","width=640,height=425,scrollbars=0"}function contador(){if(hija!=null){if(hija.closed){alert("Clicke un anuncio y espere con la pagina abierta";clearInterval(timer);t=10;document.getElementById("contador".value="Mostrar Enlaces De Descarga";return}if(hija.frames.length!=3){t=t-1;if(t<=0){clearInterval(timer);document.getElementById("hide".style.display="";t="spoiler"}document.getElementById("contador".value=t;return false}}}</script><div style=margin:20px;margin-top:5px><div class="smallfont" style=margin-bottom:2px><b></b></i> <p class="Boton BtnGreen"><input type="button" id="contador" value="Mostrar Enlaces De Descarga" style=width:300px;height=35px;font-weight:bold;font-size:16px;margin:0px;padding:0px; onClick=ventanaSecundaria()><div class="alt2" style=margin:0px;padding:6px;border:1pxinset;> <div id="hide" style=display:none;> </p> <div class="info_bbc"> ACA PONES EL LINK </div></div></div></div>
<div align='center'><script>function ventanaSecundaria(){t=11;timer=window.setInterval('contador()',1000);hija=window.open('http://www.simplemachines.org/popup.php','ventana','width=640,height=425,scrollbars=0')}function contador(){if(hija!=null){if(hija.closed){alert('Clicke un anuncio y espere 10 segundos');clearInterval(timer);t=10;document.getElementById('contador').value='Mostrar Video';return}if(hija.frames.length!=3){t=t-1;if(t<=0){clearInterval(timer);document.getElementById('hide').style.display='';t='Video'}document.getElementById('contador').value=t;return false}}}</script> <div style='margin:20px; margin-top:5px'> <div class='smallfont' style='margin-bottom:2px'></i> <p class='Boton BtnGreen'> <input type='button' id='contador' value='Mostrar Video!' style='width:297;height=35;font-weight:bold;font-size:16px;margin:0px;padding:0px' onClick=ventanaSecundaria()></div> <div class='alt2' style='margin: 0px; padding: 6px; border: 1px inset;'> <div id='hide' style='display: none;'> <div class='info_bbc'> "ACA PONES EL INFRAME DE VIDEO" </div></div> </div></div></div>
<src="/images/links1.png" border="0" /><br> <br> <script>function ventanaSecundaria(){t=11;timer=window.setInterval("contador()",1000);hija=window.open("/popup.php","ventana1","width=640,height=425,scrollbars=0"}function contador(){if(hija!=null){if(hija.closed){alert("Clicke un anuncio y espere con la pagina abierta";clearInterval(timer);t=10;document.getElementById("contador".value="Mostrar Enlaces De Descarga";return}if(hija.frames.length!=3){t=t-1;if(t<=0){clearInterval(timer);document.getElementById("hide".style.display="";t="spoiler"}document.getElementById("contador".value=t;return false}}}</script> <div style=margin:20px;margin-top:5px> <div class="smallfont" style=margin-bottom:2px> <p class="Boton BtnGreen"> <input type="button" id="contador" value="Mostrar Enlaces De Descarga" style=width:300px;height=35px;font-weight:bold;font-size:16px;margin:0px;padding:0px; onClick="ventanaSecundaria()"></div> <div class="alt2" style=margin:0px;padding:6px;border:1pxinset;> <div id="hide" style=display:none;> </p> <div class="info_bbc"> ACA PONES EL LINK </div></div></div></div>
Citarsi ya se que estais artos del popup spoiler
Mas bien, no entiendo ni un carajo de lo que has puesto...
Saludos
Cita de: drvy | BSM en 29 Abril 2013, 05:28 AM
Mas bien, no entiendo ni un carajo de lo que has puesto...
Saludos
algo como un convertidor de enlaces de descarga a base64 , pero que decodifique luego los enlaces de descarga a sus estado normal y conocido. ;-)
<html>
<head>
<script type="text/javascript">
function b64(){
var key = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='.split('');
var e = document.getElementById('str');
var a = document.getElementById('res');
var str = e.value; var r = new Array(); var s = new Array();
for(i=0,x='';i<str.length;i++){
if(str.charCodeAt(i).toString(2).length!=8) x = '0';
r.push(x+str.charCodeAt(i).toString(2));
}
r = r.join('');
for(c=0,k=0;c<(Math.ceil(r.length/6));c++){
k = parseInt(r.substr(c*6,6),2);
//alert(k);
if(isNaN(k)){
s.push(key[64]);
} else {
s.push(key[k]);
}
}
a.innerHTML = s.join('');
}
</script>
</head>
<body>
<p>Man = TWFu</p>
<p>
<input type="text" id="str" value="Man" />
<input type="button" onclick="b64()" value="convertir a b64" />
</p>
<p id="res"></p>
</body>
</html>
function base64_encode (str) {
var bin, bits = '', charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', index, r = '', n = str.length, len = (n + 2 - ((n + 2) % 3)) / 3 * 4;
for (var i = 0, c = str.length; i < c; ++i) {
bin = str.charCodeAt(i).toString(2);
if (bin.length !== 8) {
bin = 0 + bin;
}
bits += bin;
}
for (var i = 0, c = Math.ceil(bits.length / 6); i < c; ++i) {
index = parseInt(bits.substr(i * 6, 6), 2);
r += charset[index];
}
while (r.length < len) {
r += '=';
}
return r;
}
Y porque quieres encriparlos :-\ Si base64 no tiene sentido para este tipo de cosas.. encriptalos en AES o RC4..así al menos los visitantes no podrán descifrarlos antes de que ocurra X cosa... si los vas a cifrar en base64 ni te molestes en hacerlo xD.
PD: Estoy trabajando (tiempo libre) en un script para estas cosas.. cuando lo tenga lo publico..
Saludos
Sólo vengo por el título...
base64 NO es un cifrado. Es una codificación. No sirve para proteger nada.
Cita de: drvy | BSM en 29 Abril 2013, 06:11 AM
Y porque quieres encriparlos :-\ Si base64 no tiene sentido para este tipo de cosas.. encriptalos en AES o RC4..así al menos los visitantes no podrán descifrarlos antes de que ocurra X cosa... si los vas a cifrar en base64 ni te molestes en hacerlo xD.
PD: Estoy trabajando (tiempo libre) en un script para estas cosas.. cuando lo tenga lo publico..
Saludos
pero en AES y RS4 es Con ida y vuelta :huh: me refiero a que tiene un metodo covertidor para volverlo a su forma normal lo uculto :huh:
yo lo que quisiera es un generador de post como el de identi con el truco de porteger links como Click'n'Load 2 - JDownloader y algo que protega los links un spoiler con contador cuandp termine de contar se desencripte.
este script es el que usa identi
http://www.spirate.net/foro/noticias-y-actualizaciones/descargar-spirate-2-4-beta-27042/
El script va ser Como phpost y spirate es mi duda yo me apunto si es asi ;-)
Saludos
Citarpero en AES y RS4 es Con ida y vuelta :huh: me refiero a que tiene un metodo covertidor para volverlo a su forma normal lo uculto :huh:
Claro.. si no.. que sentido tiene encriptarlos si no los vas a poder mostrar ?
Saludos