Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

Badges

Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

RLScott

About

Username
RLScott
Joined
Visits
402
Last Active
Roles
Tutorial Authors, Registered Users
Points
81
Badges
9
Posts
1,585
Location
Hopkins, Minnesota
  • "salting" a string?

    Here is a limitation of all "salting" operations meant to increase security. In serious encryption applications the designers should always assume that everything except the password could be known to an attacker. That includes the salt and the hash algorithm. Unless you are going to personalize the salt for each user and keep it just as secure as the user's password. So if the attacker knows the salt then he can simply modify his cracking machine to pre-salt all the candidate passwords. If he is going to run through a dictionary of likely passwords then he can still do that with the salt added on.

    Post edited by RLScott on
    baja_yu
  • Does local variable´s keep it´s value after end of Instance implementation

    I read that in C - if you have an local variable declared inside a function. After that function ends the variables set inside that function looses its value. So say you have an "int name = 100;" after the function ends that will be set to null.

    Is it the same for instance methods in objective-C? if I declare "int name = 100" after that instance method is ended will it be set to null? unless i make it a static variable?
    A local variable will not be set to null when a function or method exits. It will simply cease to exist. You can't reference it outside the method, and the next time you enter that method a brand new instance of that local variable will be created which will have absolutely nothing to do with the previous instance. If it has an initializer as you have shown then it will be initialized upon entry.

    Static, as you said, implies visibility only within the file where it is declared. But an ivar is not a global. A global variable has only one instance forever. An ivar has a different instance for each instance of the class to which it belongs.
    Murphy