samsung finesse forum
May 22, 2012, 04:20:03 PM Samsung Finesse
Welcome, Guest. Please login or register.

News: Do you like Samsung Finesse?
Advanced search
Best Screen Protector for Samsung Finesse          Get Hottest Ringtones for Samsung Finesse           Scratch-Proof your Samsung Finesse
Pages: [1]
Print
Author Topic: How to get your SPC, by hand!  (Read 2463 times)
ybom
Administrator
Hero Member
*****

Cookies: 2
Posts: 621


I am Finessful!

ybomian
« on: May 25, 2009, 04:23:12 PM »

This is a handy guide to get your SPC from your ESN if you have a 10 digit calculator (and a sheet of paper to write down the variables; I've never trusted the memory buttons myself). You can also do this out by hand if you want. Just don't forget the additional numbers these equations call for, especially on the longer step 3. Enjoy!

1. Imagine breaking apart the ESN into 11 separate numbers, #1-#11.
Let's use the example ESN of 12345678901. This means we have 1,2,3,4,5,6,7,8,9,0, and 1.

2. Do the following equations; (X=)#1+#2+#3+5. 2^X. X-1. Keep this result as X.
Ok, then 1+2+3+5 = 11. Then 2^11 = 2048. Then 2048-1 = 2047 = X.

3. Do the next equation; #4+#5+#6+#7+#8+#9+#10+#11+23. Keep this result as Y.
Now we get 4+5+6+7+8+9+0+1+23 = 63 = Y.

4. Add the last 3 digits of your ESN to 199 (#9#10#11+199). Keep this result as Z.
901+199 = 1100 = Z.

5. X*Y*Z.
2047*63*1100 = 141857100

6. The last 6 digits of the resulting number is your SPC.
We can easily count over to get 857100. This also checks with previous results.

The compressed guide that'll fit on a small index card;
1. X= #1 +#2 +#3 +5, 2^X, X-1.
2. Y= #4 +#5 +#6 +#7 +#8 +#9 +#10 +#11 +23.
3. Z= String #9 #10 #11, +199.
4. X*Y*Z, SPC is last 6.

PS. By the way, you might get a 10 digit number in step 5. Don't get all hasty with your lightbulb that might go off about the 10 digit code we still need. Many other people get 9 digits, and I figure there are even those that get 11 digits. However, if you do get a 10 digit code and it does work as the code, PM me immediately. You are probably 1 in 10 billion and someone else needs to verify that it works on another Fin.
« Last Edit: May 28, 2009, 12:07:09 AM by ybom » Logged

"I always try to be fair to my readers, even the unworthy ones." -Piers Anthony Jacob
Nice-Man
Newbie
*

Cookies: 0
Posts: 16


« Reply #1 on: May 30, 2009, 09:48:14 AM »

I am going to use your formula to make an exe file using delphi, I will zip it after it is done and post it
Logged
ybom
Administrator
Hero Member
*****

Cookies: 2
Posts: 621


I am Finessful!

ybomian
« Reply #2 on: May 30, 2009, 11:11:15 AM »

I don't think anyone is going to trust it. Why not just build a javascript one instead?
Logged

"I always try to be fair to my readers, even the unworthy ones." -Piers Anthony Jacob
Nice-Man
Newbie
*

Cookies: 0
Posts: 16


« Reply #3 on: May 30, 2009, 11:18:18 AM »

The work is done. You are right, I will not post it. Anyway there is an xls file out there that does the job.
I will try to make it as a php file. Can u upload it to this site?
« Last Edit: May 30, 2009, 11:22:38 AM by Nice-Man » Logged
ybom
Administrator
Hero Member
*****

Cookies: 2
Posts: 621


I am Finessful!

ybomian
« Reply #4 on: May 30, 2009, 03:00:36 PM »

The work is done. You are right, I will not post it. Anyway there is an xls file out there that does the job.
I will try to make it as a php file. Can u upload it to this site?
I made the XLS file in the other topic. Lol. It does the same thing as this topic, exactly. It is no different. This is essentially a human readable port of that code so anyone can use it in any way they please.

However, your PHP question. The only way to do that is to make a SMF forum package that uses client-side code and maybe have it part of the user's profile or something. I might could install the package, but I'm not a SMF guru. I'd probably have some trouble getting it going, most assuredly.
Logged

"I always try to be fair to my readers, even the unworthy ones." -Piers Anthony Jacob
Nice-Man
Newbie
*

Cookies: 0
Posts: 16


« Reply #5 on: May 30, 2009, 06:13:14 PM »

OK I made it as javascript, here it is cut it and save it an html file and open it locally or host for others to access it:
Code:
<html>
<script>
function activateme(){
sESN=document.getElementById("ESNEditBox").value;
if (sESN.length<11){
alert('Enter a valid ESN!');
document.getElementById("ESNEditBox").value="";
}

X=parseFloat(sESN.charAt(0))+parseFloat(sESN.charAt(1))+parseFloat(sESN.charAt(2))+5;
X=Math.pow(2,X)-1;
Y=parseFloat(sESN.charAt(3))+parseFloat(sESN.charAt(4))+parseFloat(sESN.charAt(5))+parseFloat(sESN.charAt(6))+parseFloat(sESN.charAt(7))+parseFloat(sESN.charAt(8))+parseFloat(sESN.charAt(9))+parseFloat(sESN.charAt(10))+23;
Z=parseFloat(sESN.charAt(8)+sESN.charAt(9)+sESN.charAt(10))+199;
P=((X*Y*Z)/1000000);
P=P.toString();
MSL=P.substring(P.indexOf('.')+1, P.length);
sSPC=MSL;
while (sSPC.length<6)
{
sSPC=sSPC+'0';
}
document.getElementById("SPCEditBox").value=sSPC;

}
</script>

<body>

ESN <input name="ESNEditBox" id="ESNEditBox" type="text"> <input type="button" onclick="javascript:activateme();" value="submit"><br>
SPC <input name="SPCEditBox" id="SPCEditBox" type="text"><br>
« Last Edit: May 30, 2009, 06:15:03 PM by Nice-Man » Logged
ybom
Administrator
Hero Member
*****

Cookies: 2
Posts: 621


I am Finessful!

ybomian
« Reply #6 on: May 31, 2009, 12:28:06 AM »

Code:
[quote author=Nice-Man link=topic=606.msg1665#msg1665 date=1243728794]
OK I made it as javascript, here it is cut it and save it an html file and open it locally or host for others to access it:
[code]if (sESN.length<11){
[/code]
[/quote]
You might want to change this to inequality (!=) rather than a simple less than. I'll keep looking. Are you still working on the PHP script?
Logged

"I always try to be fair to my readers, even the unworthy ones." -Piers Anthony Jacob
Nice-Man
Newbie
*

Cookies: 0
Posts: 16


« Reply #7 on: June 01, 2009, 06:00:07 PM »

no after ur last comment I made it as javascript this works fine and good enough, as it could also be saved on hd and executed.
Logged
xboxhacker
Global Moderator
Full Member
*****

Cookies: 17
Posts: 179


If it ain't broke, take it apart & figure out why!


« Reply #8 on: June 02, 2009, 05:21:27 PM »

OK I made it as javascript, here it is cut it and save it an html file and open it locally or host for others to access it:

Thank You Nice-Man!! As per your request, i am now hosting it!  Grin

Here is the new topic:
http://www.samsung-finesse.com/index.php?topic=621.0

Your code is intact, i just cleaned up the HTML a little  Wink
Logged

Pages: [1]
Print
Jump to:  

Got a new phone? Find the forum here





Samsung Finesse Forum by Samsung Finesse Forum










CopyRight 2008 Samsung Finesse Forum
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Samsung Finesse Forum

Galaxy S3 | Galaxy Note | Galaxy Nexus | Kindle Fire | Atrix 4G | Motorola Xoom | Windows Phone 7
Nokia Lumia | Top Hosts | Samsung Galaxy Tab | Samsung Galaxy S2 | Samsung Galaxy S | Samsung Wave
HTC Evo 3D | HTC Evo 4G | HTC Incredible | HTC Incredible 2 | HTC Incredible S | HTC Thunderbolt
Motorola Droid Razr
| HTC Desire | HTC Desire HD | HTC Desire Z | HTC Desire S | HTC Wildfire
Motorola Droid | Galaxy Indulge | Nokia N8 | Droid Charge | Droid X | Droid X2 | Droid 2| Droid 3 | Fascinate
HTC Sensation | HTC Flyer | LG Revolution | Asus Transformer | Xperia Play | iPhone 4 | Nexus S | Droid Bionic
HTC One | HTC Wildfire S | HTC Droid Eris


This is an Un-Official fan based Website. The views expressed on this website are solely those of the proprietor, or contributors to the site, and do not necessarily reflect the views or opinions of the parties it covers, and is not affiliated with, endorsed or sponsored by parties involved.
If you have a problem with any of the content posted on this website, please contact "sales@verticalscope.com"
Term of Use | Privacy Policy | BlackRain 2006 by, Crip